#include "index.hpp"
const std::string pure = "./asset/pure/pure.txt";

class Searcher{
    private:
        Index* _index;
    public:
        Searcher(){
            _index = Index::get();
            _index->BuildIndex(pure);
        }
        void search(const std::string& query,std::string* respon){
            std::vector<std::string> words;
            JiebaUtil::CutString(query,&words);
            for(const auto& word:words){
                _index->GetInvertedDocs(word);
            }
        }

};